package cn.my.elasticsearch.config;

import org.springframework.boot.SpringBootConfiguration;

import javax.annotation.PostConstruct;

/**
 * @Description:
 * @author: :MaYong
 */
@SpringBootConfiguration
public class ElasticSearchConfig {
    @PostConstruct
    void init() {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
    }
}